﻿using System;
using System.Collections.Generic;
using System.Text;

namespace X.Entity
{
    public class ProductInfo : Nullable
    {
        public ProductInfo() { }
        public ProductInfo(bool isNull) { base.IsNull = isNull; }

        public int ProductId { get; set; }
        public string ProductName { get; set; }
        public int CategoryId { get; set; }
        public int SpecCategoryId { get; set; }
        public bool IsHotProduct { get; set; }
        public bool IsAvailable { get; set; }
        public bool IsRecommendatory { get; set; }
        public string Title { get; set; }
        public string Keyword { get; set; }
        public string Description { get; set; }
        public string Tag { get; set; }
        public IList<ImageInfo> Photo { get; set; }
        public string ProductDescribe { get; set; }
        public decimal Price { get; set; }

        public string CategoryName { get; set; }
        //public string SpecCategoryName { get; set; }

        public string Model { get; set; }
        public string PartNumber { get; set; }
        public string Certificate { get; set; }
        public string Color { get; set; }
        public string Guarantee { get; set; }
        public string HRC { get; set; }
        public string Material { get; set; }

        public int OrderNum { get; set; }

        public class ImageInfo : Nullable
        {
            public ImageInfo() { }
            public ImageInfo(bool isNull) { base.IsNull = isNull; }

            public int Id { get; set; }
            public int ProductId { get; set; }
            public string ImageName { get; set; }
            public string ImageNameEx { get; set; }
        }
    }

    public class PriceInfo : Nullable
    {
        public PriceInfo() { }
        public PriceInfo(bool isNull) { base.IsNull = isNull; }

        public int Id { get; set; }
        public int LowPrice { get; set; }
        public int HightPrice { get; set; }
    }

    public class TagInfo : Nullable
    {
        public TagInfo() { }
        public TagInfo(bool isNull) { base.IsNull = isNull; }

        public int TagId { get; set; }
        public int ProductId { get; set; }
        public string Tag { get; set; }
        public bool IsShow { get; set; }
        public bool IsBold { get; set; }
        public int OrderNum { get; set; }
    }
}
